home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmWatch
- Caption = "Stopwatch"
- ClientHeight = 2550
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 2025
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 2550
- ScaleWidth = 2025
- Begin VB.CommandButton cmdStop
- Caption = "Stop"
- Height = 495
- Left = 360
- TabIndex = 1
- Top = 1440
- Width = 1215
- End
- Begin VB.CommandButton cmdStart
- Caption = "Start"
- Height = 495
- Left = 360
- TabIndex = 0
- Top = 240
- Width = 1215
- End
- Begin VB.Timer tmrWatch
- Enabled = 0 'False
- Interval = 100
- Left = 600
- Top = 2040
- End
- Begin VB.Label lblTime
- Height = 375
- Left = 1080
- TabIndex = 3
- Top = 960
- Width = 615
- End
- Begin VB.Label lblSeconds
- Caption = "Seconds"
- Height = 255
- Left = 120
- TabIndex = 2
- Top = 960
- Width = 735
- End
- Attribute VB_Name = "frmWatch"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdStart_Click()
- lblTime.Caption = " 0" 'Reset watch
- tmrWatch.Enabled = True
- End Sub
- Private Sub cmdStop_Click()
- tmrWatch.Enabled = False
- End Sub
- Private Sub tmrWatch_Timer()
- lblTime.Caption = Str(Val(lblTime.Caption) + 0.1)
- End Sub
-